package com.itheima.dbsharding.simple.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;


import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * @author 徐文祥
 * @since 2023/12/03 12:04
 */
@Repository
@Mapper
public interface OrderDao {
    int insertOrder(@Param("price")BigDecimal price,
                    @Param("userId")Long userId,
                    @Param("status") String status );

    List<Map> selectByIds(@Param("ids") List<Long> ids);
}
